<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>权限配置</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../style/index.css">
    <style>
        .custom-tree-node .config {
            padding: 10px 0 10px 8px;
            border-left: 1px solid #EBEEF5;
        }

        .el-tree-node__content {
            padding: 15px 0 15px;
            height:100%;
            border-bottom: 1px solid #EBEEF5;
            align-items:start;
        }
        
        .el-checkbox-group{
            display: flex;
            flex-wrap: wrap;
        }

        .button .el-checkbox {
            font-size: 16px; padding-bottom: 15px;
        }

        .el-descriptions-item__label {
            width: 300px;
        }

        .el-tabs__content{
            overflow: visible;
        }

        .el-tabs__nav-scroll {
            position: relative;
        }
    </style>
</head>

<body style="background-color:#f7f5f6;">
    <div id="app" v-cloak>
        <yl-page-header content="配置权限"></yl-page-header>
        <el-form ref="contract" :inline="true" inline-message="true" style="width: 100%;margin-top: 20px;">
            <el-tabs v-model="activeName" type="border-card">
                <span style="position: absolute; right: 10px; top: -40px; z-index: 1;">
                    <el-button type="text" @click="window.history.back()">返回</el-button>
                    <el-button type="text" :loading="loading" @click="submitForm('contract')">提交</el-button>
                </span>
                <el-tab-pane label="菜单权限配置" name="first">
                    <div style="height:calc(100vh - 160px) ; overflow-y: auto;  border:1px solid #EBEEF5;">
                        <el-tree :indent="16" :data="menuList" ref="tree" show-checkbox node-key="Model_Number" check-on-click-node
                            :props="defaultProps" default-expand-all :expand-on-click-node="false"
                            @check-change="handleCheckChange" >
                            <span class="custom-tree-node" slot-scope="{ node, data }">
                                <span>{{ data.Model_Name }}</span>
                                <!-- <div class="button" v-if="data.Url" style="padding-top:30px">
                                    <el-checkbox-group v-model="data.UR">
                                        <el-checkbox label="UR_New">
                                            <span class="checkbox_label">新增权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_Modify">
                                            <span class="checkbox_label">修改权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_Del">
                                            <span class="checkbox_label">删除权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_Query">
                                            <span class="checkbox_label">查询权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_RetailPrice">
                                            <span class="checkbox_label">查看零售价权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_PurchasePrice">
                                            <span class="checkbox_label">查看采购价权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_DistributionPrice">
                                            <span class="checkbox_label">查看经销价权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_Import">
                                            <span class="checkbox_label">导入权限</span>
                                        </el-checkbox>
                                        <el-checkbox label="UR_Export">
                                            <span class="checkbox_label">导出权限</span>
                                        </el-checkbox>
                                    </el-checkbox-group>
                                </div> -->
                            </span>
                        </el-tree>
                    </div>
                </el-tab-pane>
                <!-- <el-tab-pane label="可管理的店铺" name="second">
                    <el-row :gutter="20">
                        <el-col :span="12">
                            <el-table :data="tableData" stripe border height="calc(100vh - 120px)" style="width: 100%">
                                <el-table-column align="center" type="index"label="序号" width="50"></el-table-column>
                                <el-table-column align="center" prop="经销商"label="用户名"></el-table-column>
                                <el-table-column align="center" label="权限">
                                    <template v-slot="{row}">
                                        
                                    </template>
                                </el-table-column>
                            </el-table>
                        </el-col>
                        <el-col :span="12">
                            <el-table :data="tableData" stripe border height="calc(100vh - 120px)" style="width: 100%">
                                <el-table-column align="center" type="index"label="序号" width="50"></el-table-column>
                                <el-table-column align="center" prop="经销商"label="用户名"></el-table-column>
                                <el-table-column align="center" label="权限">
                                    <template v-slot="{row}">
                                    
                                    </template>
                                </el-table-column>
                            </el-table>
                        </el-col>
                    </el-row>
                   
                </el-tab-pane> -->
            </el-tabs>
        </el-form>
    </div>
    <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../utils/vuex.min.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../component/component.js"></script>
    <script type="text/javascript" src="../../../config/config.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="js/rights.js"></script>
</body>

</html>